@mixin fz-m($fontSize: 16px) {
  font-size: $fontSize;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
}

@mixin fz-r($fontSize: 14px) {
  font-size: $fontSize;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
}

.preview-card-form {
  margin: 0 auto;
  width: 414px;
  color: #33302d;
  font-family: STHeitiSC-Light, STHeitiSC;
  font-weight: 300;
  overflow: hidden;

  >img,
  .card-pictrue {
    width: 100%;
    height: auto;
  }

  .form-preview-title {
    padding: 16px 16px 0;
    border-bottom: 16px solid #f9f9f9;

    h4 {
      @include fz-m(17px);
    }

    >div {
      margin: 12px 0 16px;
      @include fz-r(14px);
      color: #969696;
    }
  }

  .preview_submit {
    padding: 16px;

    .el-button {
      width: 100%;
    }
  }
}

.preview-card-form .preview-card-cover {
  width: 100%;
  min-height: 220px;
  background-color: #f5f5f5;
  overflow: hidden;

  .el-upload {
    width: 100%;
    height: 100%;
    line-height: 100%;
    border: none;
    background-color: #f5f5f5;
  }

  .el-upload--picture-card i {
    margin-top: 85px;
  }

  .preview-card-cover__preview {
    position: relative;
  }

  .preview-card-cover__preview:hover {
    .preview-card-cover__preview__icon {
      display: block;
    }

    &:after {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
    }
  }

  .preview-card-cover__preview__icon {
    display: none;
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;

    i {
      color: #fff;
      margin-top: 0;
    }
  }
}

.preview-card-form .preview-card-item {
  position: relative;
  padding: 16px;
  border: 1px solid transparent;
  background-color: #fff;

  .preview-card-item__title {
    cursor: grab;
    display: flex;
    justify-content: space-between;
    @include fz-m(17px);

    .is-require {
      color: #ff6b00;
    }

    .preview-card-item__title__index {
      margin-right: 6px;
    }
  }

  .preview-card-item__desc {
    margin: 12px 0 16px;
    color: #969696;
    @include fz-r(14px);
  }

  .el-cascader,
  .el-select,
  .el-input {
    width: 100%;
  }

  .pca_textarea {
    margin-top: 12px;
  }

  .el-input {
    height: 36px;
  }

  .el-input__inner {
    height: 36px;
    line-height: 36px;
  }

  .preview-card-item__upload {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    border: 1px solid #eaeaea;

    .el-upload {
      width: 100%;
      height: 100%;
      border: none;
      border-radius: 0;
      background-color: #fff;
      font-size: 14px;

      .el-icon {
        font-size: 14px;
        margin-top: 24px;
        margin-bottom: 4px;
        color: #ff6b00;
      }
    }

    .share_file {
      width: 100%;
      height: 100%;

      img {
        width: 100%;
        height: 100%;
      }
    }
  }

  .preview-card-item__carousel_img {
    width: 100%;
    height: 164px;
  }

  .preview-card-item__carousel_upload {
    .el-upload.el-upload--picture-card {
      margin-top: 8px;
      width: 121px;
      height: 121px;
      background: #ffffff;
      border-radius: 4px;
      border: 1px solid #eaeaea;

      i {
        margin-top: 36px;
      }
    }

    .el-upload-list.el-upload-list--picture-card {
      .el-upload-list__item {
        margin-top: 8px;
        margin-bottom: 0px;
        width: 121px;
        height: 121px;

        &:nth-child(3n) {
          margin-right: 0px;
        }
      }
    }
  }

  .preview-card-item__carousel_empty {
    color: #969696;
    @include fz-r;
    height: 100%;
    line-height: 164px;
    text-align: center;
    background-color: #efefef;
  }

  .preview-card-item__rate {
    margin-bottom: 16px;
  }

  .upload_tip {
    margin-top: 8px;
    color: #969696;
    @include fz-r(12px);
  }
}